package com.firemoss.magicbus.messaging.fillter
{
	import com.firemoss.magicbus.filter.IFilter;

	public class ResponseFilterChain extends AbstractFilterChain
	{
		public function ResponseFilterChain( filters : Array = null )
		{
			super( filters );
		}


		override public function execute( ...rest ) : *
		{
			for each ( var filter : ResponseFilter in filterList )
			{
				rest[ 0 ] = filter.response( rest[ 0 ] )
			}
			
			return rest
		}
		
	}
}